/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.thinkinbunny.data;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author yfxiawei
 */
public class DbConnect {
    	private Connection ct = null;
        

	public Connection getConn() {
		try {
			Class.forName("com.mysql.jdbc.Driver").newInstance();
			ct = DriverManager
					.getConnection("jdbc:mysql://localhost/jdfinancial?user=root&password=jingdong321&useUnicode=true&characterEncoding=utf-8");

			// ct = DriverManager.getConnection(
			// "jdbc:mysql://localhost:3306/test", "root", "handong");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return ct;
	}
    
}
